﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using Microsoft.SharePoint;

namespace QNH.ActivityLibrary
{
    class HelperMethods
    {
        public static void ErrorHandling(Exception e)
        {
            SPSecurity.RunWithElevatedPrivileges(delegate
            {
                EventLog.WriteEntry("Custom SharePont Actions", "error: " + e.Message, EventLogEntryType.Error);
            });
        }
    }
}
